<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="jquery-3.1.0.min.js"></script>
</head>
<body>
    <p id="p1">hello world</p>
    <button id="btn1">按钮</button>


    <script>
        $(document).ready(function(){
            $("#btn1").click(function(){
                $("#p1").remove(); //全部删除
                $("#p1").empty();  //清空内容
                $("#p1").html("");  //给p1里面付空的值
            })
        })
    </script>
</body>
</html>